package edu.sctu.liangyuxiang.day20150518;

/**
 * Created by user20 on 2015/5/18.
 */
public class TeacherData {
    Teacher[] teacher = new Teacher[2];
    Student student1 = new Student();

    Student[] student = new Student[5];
    Student[] student2 = new Student[5];

    public Teacher[] getStudent() {
        Teacher teacher1 = new Teacher();
        Teacher teacher = new Teacher();
        teacher.name = "张三";
        teacher.course = "计算机";
        teacher.number = 100610;
        teacher.sex = "男";
        teacher.title = "教授";

        for (int i = 0; i < 5; i++) {
            student1.name = "李四" + i;
            student1.age = 18 + i;
            student1.number = 140610;
            student1.score = 58 + i;
            student1.sex = "男" + i;
            student1.adress = "成都市";
            student[i] = student1;
            teacher.student = student;

            teacher.name = "王二";
            teacher.course = "高数";
            teacher.number = 100612;
            teacher.sex = "男";
            teacher.title = "讲师";


            for (i = 0; i < 5; i++) {
                student1.name = "李四" + i;
                student1.age = 17 + i;
                student1.number = 140610;
                student1.score = 57 + i;
                student1.sex = "男" + i;
                student1.adress = "龙泉驿";
                student2[i] = student1;
                teacher.student = student2;
                teacher1.student = student;

            }
        }
        this.teacher[0] = teacher;
        this.teacher[1] = teacher1;
        return this.teacher;
    }
}